<#macro layout>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv=X-UA-Compatible content=IE=EmulateIE10>
    <meta http-equiv=X-UA-Compatible content=IE=10>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Le styles -->
    <link href="/css/bootstrap.css" rel="stylesheet">
    <link href="/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="/css/jquery.validity.css" rel="stylesheet">
    <link href="/css/index.css" rel="stylesheet">
    <link href="/css/dsdj.css" rel="stylesheet" type="text/css" />
    <link href="/css/iconfont.css" rel="stylesheet" type="text/css"/>

    <style>
        /* autocomplete */
        div.ac {
            border: 1px solid #ccc;
            position: absolute;
            display: none;
            overflow: auto;
            background-color: #ffffff;
            z-index: 998;
        }

        div.ac > ul {
            margin-top: 10px;
            padding: 0;
        }

        div.ac > ul > li {
            height: 33px;
            line-height: 33px;
            cursor: pointer;
        }

        div.ac > ul > li:hover {
            background: #eee;
        }

        div.ac > ul > li > div span {
            padding-left: 15px;
        }

        div.ac > ul > li > div span em {
            color: red;
            font-style: normal;
        }
    </style>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 0px 0px;
        }

        .container-fluid {
            padding-left: 3px;
            padding-right: 3px;
        }
    </style>
    <script src="/js/jquery.js"></script>

    <script src="/js/jquery.js"></script>
    <script src="/js/jquery/jQuery.validity.js"></script>
    <script src="/js/bootstrap.js"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="/js/html5.js"></script>
    <![endif]-->


</head>

<script type="text/javascript" src="/js/tel/jquery-1.8.3.min.js"></script>
<script language="javascript" type="text/javascript" src="/js/tel/qnviccub.js"></script>
<script language="javascript" type="text/javascript" src="/js/tel/qnvfunc.js"></script>
<script language=javascript>
    // function   window.onbeforeunload()
    {
        //alert('unload before');
    }

    function AppendStatus(szStatus) {
        //qnviccub.QNV_Tool(QNV_TOOL_WRITELOG,0,szStatus,NULL,NULL,0);//写本地日志到控件注册目录的userlog目录下

        $("#TelState").html(szStatus);
        //console.info(szStatus);

    }

    function AppendStatusEx(uID, szStatus) {
        uID = uID + 1;
        AppendStatus("通道" + uID + ":" + szStatus);
    }

    function T_GetEvent(uID, uEventType, uHandle, uResult, szdata) {
        //var vValueArray=qnviccub.QNV_Event(0,2,0,"","",1024);
        var vValue = " type=" + uEventType + " Handle=" + uHandle + " Result=" + uResult + " szdata=" + szdata;
        //console.info(vValue);
        switch (uEventType) {
            case BriEvent_PhoneHook:// 本地电话机摘机事件
                AppendStatusEx(uID, "本地电话机摘机");
                break;
            case BriEvent_PhoneDial:// 只有在本地话机摘机，没有调用软摘机时，检测到DTMF拨号
                AppendStatusEx(uID, "本地话机拨号");
                break;
            case BriEvent_PhoneHang:// 本地电话机挂机事件
                AppendStatusEx(uID, "本地电话机挂机");
                break;
            case BriEvent_CallIn:// 外线通道来电响铃事件
                AppendStatusEx(uID, "外线通道来电响铃" + vValue);
                break;
            case BriEvent_GetCallID://得到来电号码
                AppendStatusEx(uID, "得到来电号码:" + szdata);
                var SerialNo = qnviccub.QNV_DevInfo(uID, QNV_DEVINFO_GETSERIAL);
                alert(uID + "," + szdata + "," + SerialNo);
                //去发起下单
                $("#telNumber").val(szdata);
                $("#telNumberSelf").val("1");
                $("#formTel").submit();
                //摘机通话
                //TV_OffHookCtrl(0);
                break;
            case BriEvent_StopCallIn:// 对方停止呼叫(产生一个未接电话)
                AppendStatusEx(uID, "对方停止呼叫(产生一个未接电话)" + szdata);
                break;
            case BriEvent_DialEnd:// 调用开始拨号后，全部号码拨号结束
                AppendStatusEx(uID, "开始拨号" + szdata);
                break;
            case BriEvent_PlayFileEnd:// 播放文件结束事件
                AppendStatusEx(uID, "播放文件结束事件" + vValue);
                break;
            case BriEvent_PlayMultiFileEnd:// 多文件连播结束事件
                AppendStatusEx(uID, "多文件连播结束事件" + vValue);
                break;
            case BriEvent_PlayStringEnd://播放字符结束
                AppendStatusEx(uID, "播放字符结束" + vValue);
                break
            case BriEvent_RepeatPlayFile:// 播放文件结束准备重复播放
                AppendStatusEx(uID, "播放文件结束准备重复播放" + vValue);
                break;
            case BriEvent_SendCallIDEnd:// 给本地设备发送震铃信号时发送号码结束
                AppendStatusEx(uID, "给本地设备发送震铃信号时发送号码结束" + vValue);
                break;
            case BriEvent_RingTimeOut://给本地设备发送震铃信号时超时
                AppendStatusEx(uID, "给本地设备发送震铃信号时超时" + vValue);
                break;
            case BriEvent_Ringing://正在内线震铃
                AppendStatusEx(uID, "正在内线震铃" + vValue);
                break;
            case BriEvent_Silence:// 通话时检测到一定时间的静音.默认为5秒
                AppendStatusEx(uID, "通话时检测到一定时间的静音" + vValue);
                break;
            case BriEvent_GetDTMFChar:// 线路接通时收到DTMF码事件
                AppendStatusEx(uID, "线路接通时收到DTMF码事件" + vValue);
                break;
            case BriEvent_RemoteHook:// 拨号后,被叫方摘机事件
                AppendStatusEx(uID, "拨号后,被叫方摘机事件" + vValue);
                break;
            case BriEvent_RemoteHang://对方挂机事件
                AppendStatusEx(uID, "对方挂机事件" + vValue);
                break;
            case BriEvent_Busy:// 检测到忙音事件,表示PSTN线路已经被断开
                AppendStatusEx(uID, "检测到忙音事件,表示PSTN线路已经被断开" + vValue);
                break;
            case BriEvent_DialTone:// 本地摘机后检测到拨号音
                AppendStatusEx(uID, "本地摘机后检测到拨号音" + vValue);
                break;
            case BriEvent_RingBack:// 电话机拨号结束呼出事件。
                AppendStatusEx(uID, "电话机拨号结束呼出事件" + vValue);
                break;
            case BriEvent_MicIn:// MIC插入状态
                AppendStatusEx(uID, "MIC插入状态" + vValue);
                break;
            case BriEvent_MicOut:// MIC拔出状态
                AppendStatusEx(uID, "MIC拔出状态" + vValue);
                break;
            case BriEvent_FlashEnd:// 拍插簧(Flash)完成事件，拍插簧完成后可以检测拨号音后进行二次拨号
                AppendStatusEx(uID, "拍插簧(Flash)完成事件，拍插簧完成后可以检测拨号音后进行二次拨号" + vValue);
                break;
            case BriEvent_RefuseEnd:// 拒接完成
                AppendStatusEx(uID, "拒接完成" + vValue);
                break;
            case BriEvent_SpeechResult:// 语音识别完成
                AppendStatusEx(uID, "语音识别完成" + vValue);
                break;
            case BriEvent_FaxRecvFinished:// 接收传真完成
                AppendStatusEx(uID, "接收传真完成" + vValue);
                break;
            case BriEvent_FaxRecvFailed:// 接收传真失败
                AppendStatusEx(uID, "接收传真失败" + vValue);
                break;
            case BriEvent_FaxSendFinished:// 发送传真完成
                AppendStatusEx(uID, "发送传真完成" + vValue);
                break;
            case BriEvent_FaxSendFailed:// 发送传真失败
                AppendStatusEx(uID, "发送传真失败" + vValue);
                break;
            case BriEvent_OpenSoundFailed:// 启动声卡失败
                AppendStatusEx(uID, "启动声卡失败" + vValue);
                break;
            case BriEvent_UploadSuccess://远程上传成功
                AppendStatusEx(uID, "远程上传成功" + vValue);
                break;
            case BriEvent_UploadFailed://远程上传失败
                AppendStatusEx(uID, "远程上传失败" + vValue);
                break;
            case BriEvent_EnableHook:// 应用层调用软摘机/软挂机成功事件
                AppendStatusEx(uID, "应用层调用软摘机/软挂机成功事件" + vValue);
                break;
            case BriEvent_EnablePlay:// 喇叭被打开或者/关闭
                AppendStatusEx(uID, "喇叭被打开或者/关闭" + vValue);
                break;
            case BriEvent_EnableMic:// MIC被打开或者关闭
                AppendStatusEx(uID, "MIC被打开或者关闭" + vValue);
                break;
            case BriEvent_EnableSpk:// 耳机被打开或者关闭
                AppendStatusEx(uID, "耳机被打开或者关闭" + vValue);
                break;
            case BriEvent_EnableRing:// 电话机跟电话线(PSTN)断开/接通
                AppendStatusEx(uID, "电话机跟电话线(PSTN)断开/接通" + vValue);
                break;
            case BriEvent_DoRecSource:// 修改录音源
                AppendStatusEx(uID, "修改录音源" + vValue);
                break;
            case BriEvent_DoStartDial:// 开始软件拨号
                AppendStatusEx(uID, "开始软件拨号" + vValue);
                break;
            case BriEvent_RecvedFSK:// 接收到FSK信号，包括通话中FSK/来电号码的FSK
                AppendStatusEx(uID, "接收到FSK信号，包括通话中FSK/来电号码的FSK" + vValue);
                break;
            case BriEvent_DevErr://设备错误
                AppendStatusEx(uID, "设备错误" + vValue);
                break;
            default:
                if (uEventType < BriEvent_EndID) {
                    AppendStatusEx(uID, "准备就绪，电话待机中.... ");
                    //AppendStatusEx(uID,"忽略其它事件发生:ID=" + uEventType+ vValue);
                }

                break;
        }

    }

    function setTel(company) {

        var cmp = parseInt(company);

        $.ajax({
            type: "POST",
            url: "/sysUser/SetMyTel",
            dataType: "json",
            data: {'company': cmp},
            success: function (data) {
                if (data.ok == 1) {
                    $("#aler").html("<font size='3' color='#03d912' ><em>&nbsp;&nbsp;&nbsp;&nbsp;</em>接线电话号码__选择OK</font>");

                }
                else {
                    $("#aler").html("<font size='3' color='#f90d34' ><em>&nbsp;&nbsp;&nbsp;&nbsp;</em>未选择__接线电话号码</font>");
                }
            },
            error: function (textStatus) {
                $("#aler").html("<font size='3' color='#f90d34' ><em>&nbsp;&nbsp;&nbsp;&nbsp;</em>出错，请重新登陆</font>");
            }
        });

    }

    function showOrderMenu() {
        var flag = $("#orderMenu").is(':hidden');
        if (flag) {
            $("#orderMenu").show();
            $("#sysMenu").hide();
        } else {
            $("#orderMenu").hide();
        }
    }

    function showSysMenu() {
        var flag = $("#sysMenu").is(':hidden');
        if (flag) {
            $("#sysMenu").show();
            $("#orderMenu").hide();
        } else {
            $("#sysMenu").hide();
        }
    }

    jQuery(function ($) {
        $("li[type=menu]").click(function () {
            var nextNode = $(this).next("ul");
            var flag = nextNode.is(":visible");
            if (flag) {
                nextNode.hide();
            } else {
                nextNode.show();
            }
        });

        setTimeout(queryAcceptOrderCount, 500);
        setTimeout(queryBalance, 500);
    });

    function queryAcceptOrderCount() {
        var visitUrl = "/order/queryAcceptOrderCount?time=" + new Date();
        $.ajax({
            url: visitUrl,
            data: '',
            type: "GET",
            async: true, // 异步
            dataType: "html",
            success: function (retData) {
                var returnArray = retData.split(",");
                $("#assignmentId").html("(" + returnArray[0] + ")");
                $("#acceptId").html("(" + returnArray[1] + ")");
            }
        });
    }

    function queryBalance() {
        debugger;
        var visitUrl = "/company/balance";
        $.ajax({
            url: visitUrl,
            data: '',
            type: "GET",
            async: true, // 异步
            dataType: "html",
            success: function (result) {
                debugger;
                var balance = JSON.parse(result).balance;
                $("#companyMoney111").html(balance + ")");
            }
        });
    }

    $(function () {
        $("#id_menu_ul").height($(window).height() - 115);
        $("#id_menu_ul li[href]").click(function(e){
            if($(this).attr("opennew")=='1'){
                window.open($(this).attr("href"));
            }else {
                window.location.href = $(this).attr("href");
            }
            e.stopPropagation();
        });
        $(".parentLi").click(function(){
            var $span=$(this).find("span").eq(0);
            if($span.hasClass("zd")){
                $(this).find(".ej_menu").slideDown();
                $span.removeClass("zd").addClass("zk");
            }else{
                $(this).find(".ej_menu").slideUp();
                $span.removeClass("zk").addClass("zd");
            }
        })
    });

    function operMenu(obj) {
        if($(obj).hasClass("sq")){
            $("#id_menu_div").hide();
            $("#id_content_div").removeClass("span10").addClass("span12");
            $(obj).removeClass("sq").addClass("zd");
        }else{
            $("#id_menu_div").show();
            $("#id_content_div").addClass("span10").removeClass("span12");
            $(obj).removeClass("zd").addClass("sq");
        }
    }

</script>

<body data-spy="scroll" data-target=".subnav" data-offset="50" onLoad="TV_Initialize()" onUnload="TV_Disable()">

<SCRIPT LANGUAGE="JavaScript" FOR="qnviccub" EVENT="OnQnvEvent(chID,type,handle,result,param,szdata,szdataex)">
    T_GetEvent(chID, type, handle, result, szdata)
</SCRIPT>
<#--<div >
    <object classid="clsid:F44CFA19-6B43-45EE-90A3-29AA08000510" id="qnviccub" data="DATA:application/x-

oleobject;BASE64,GfpM9ENr7kWQoymqCAAFEAADAAD7FAAADhEAAA==
" width="1" height="1"></object>
    <input type="button" value="检查控件是否安装" name="B0" onClick="I_CheckActiveX()">

<#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
          <span >
            <a id="TelState" class="btn dropdown1-toggle pull-left" data-toggle="dropdown" href="#">
               <i class="icon-user"></i> 未安装ACTIVEX
              <span class="caret"></span></a>
            <ul class="dropdown-menu pull-left">
              <li><a onClick="TV_Initialize()"><i class="icon-cog"></i>打开设备</a></li>
              <li class="divider"></li>
              <li><input type="button" value="关闭设备" name="B6" onClick="TV_Disable()"></li>
            </ul>

          </span>
</#if>
 	        <#if session.myCompany ??>
 	      		<span class="" id="aler"><font size="3" color="#03d912" ><em>&nbsp;&nbsp;&nbsp;&nbsp;</em>接线电话号码__选择OK</font></span>

            <#else>
          		<span class="" id="aler"><font size="3" color="#f90d34" ><em>&nbsp;&nbsp;&nbsp;&nbsp;</em>未选择__接线电话号码</font></span>
            </#if>
    <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>

                      <select name="tel" id="tel" onchange="setTel(this.value)" style="height:32px;margin-left: 5%" >
                          <option value="-1" >请选择本机号码  </option>
                            <#list session.telLists as tmp>
                                <option value="${tmp.company}" >${tmp.tel}  </option>
                            </#list>

                      </select>

    </#if>
</div>-->
<div class="clear"></div>
<div class="top clear">
    <div class="top_bz">
        <span style="width: 49%">2018年9月12日 星期一

        </span>
        <span style="width: 50%">欢迎：${session.userName!""}|${session.company!""} | ${session.myCompanyName!""}

            <a >余额：<font size="3" color="#03d912" id="companyMoney111"></font></a>
            <a>短信：${session.SmsNum!""}</a>
            <a>自动派单：<img  src="/images/zdpd_pic.png"/></a>
            <a  href="/logout">退出</a>
        </span>
    </div>
    <div class="top_menu">
        <div class="logo"><p style="padding-left: 0px;"></p></div>
        <div class="menu">
            <a class="icon cd sq" href="javascript:void(0)" onclick="operMenu(this)"></a>
            <ul>
                <li><p>明天</p>
                    <p>0</p></li>
                <li><p>后天</p>
                    <p>0</p></li>
                <li><p>昨天</p>
                    <p>0</p></li>
                <li><p>今日</p>
                    <p>0</p></li>
                <li><p>未派</p>
                    <p id="assignmentId">0</p></li>
                <li><p>执行</p>
                    <p id="acceptId">0</p></li>
                <li><p>完成</p>
                    <p>0</p></li>
                <li><p>取消</p>
                    <p>0</p></li>
                <li><p>审核</p>
                    <p>0</p></li>
                <li class="kong"></li>
                <li><p>人员</p>
                    <p>0</p></li>
                <li><p>在线</p>
                    <p>0</p></li>
                <li><p>忙碌</p>
                    <p>0</p></li>
                <li><p>请假</p>
                    <p>0</p></li>
                <li><p>欠费</p>
                    <p>0</p></li>
            </ul>
        </div>
    </div>
</div>


<div class="container-fluid">
    <div class="row-fluid">

        <div class="main_left span2" id="id_menu_div">
            <ul id="id_menu_ul" style="height:700px;"><!-- 这边加个动态高度 -->
                <li href="/my">
                    <span><i class="icon icon-shouye"></i>首页</span>

                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-icon_order"></i>订单管理</span>
                    <div class="ej_menu">
                        <ul >
                             <li href="/order" opennew="1">新增订单</li>
                            <!-- <li><a href="/order/tempList"><i class="icon-magnet"></i>临时订单</a></li> -->
                            <!-- <li class="divider"></li> -->
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/assignmentList">待分派订单
                                </li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/acceptList">待接受订单
                                </li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/acceptedList">已接受订单</li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/arrivedList">已到达订单</li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/processList">代驾中订单</li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                  <li href="/order/finishList">已完成订单</li>
                              </#if>
                                    <!-- <li><a href="/order/cancelAcceptedList"><i class="icon-inbox"></i>已接取消订单</a></li>
                                    <li><a href="/order/driverCancelList"><i class="icon-inbox"></i>撤销订单</a></li>-->

                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/noApprovalList">待审核订单</li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/approvalList">已审核订单</li>
                              </#if>
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/complaintList">投诉待处理</li>
                              </#if>
                                    <!--<li><a href="/order/cancelNotAcceptApprovalList"><i class="icon-inbox"></i>未接取消订单-已审核</a></li>
                                    <li><a href="/order/cancelAcceptedApprovalList" target="_blank"><i class="icon-inbox"></i>已接取消订单-已审核</a></li>
                                    <li><a href="/order/driverCancelApprovalList" target="_blank"><i class="icon-inbox"></i>撤销订单-已审核</a></li>-->
                              <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/complaintApprovalList">投诉已处理
                                </li>
                              </#if>
                        </ul>
                    </div>
                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-yonghu1"></i>代驾服务</span>
                    <div class="ej_menu">
                        <ul class="">
                             <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                 <li href="/pricerule">扣费规则</li>
                             </#if>
                             <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                 <li href="/sysUser/telList?menuType=2">价格设置</li>
                             </#if>
                             <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                 <li href="/sysUser/telList?menuType=3">扣费设置</li>
                             </#if>


                            <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/orderOtherCallReport">代叫统计</li>
                            </#if>
                        </ul>
                    </div>
                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-wodebaoxian"></i>同城配送</span>
                    <div class="ej_menu">
                        <ul class="">
                          <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                              <li href="/categoryorder/deliveryList">同城配送订单</li>
                          </#if>

                        </ul>
                    </div>
                </li>
               <!--  <li href="/categoryorder/unlockList">
                    <span class="icon"><i class="icon icon-kehuhuiyuanguanli"></i>保镖特卫</span>
                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-xinyongqia"></i>泊车服务</span>
                    <div class="ej_menu">
                        <ul class="">
                            <li href="/categoryorder/parkList">
                                泊车订单管理

                            </li>
                            <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
                                <li href="/park/parkPlace">
                                    泊车地点设置
                                </li>
                            </#if>
                            <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
                                <li href="/park/parkPrice">
                                    泊车价格设置
                                </li>
                            </#if>
                        </ul>
                    </div>
                </li> -->
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-youhuiquan"></i>员工管理</span>

                    <div class="ej_menu">
                        <ul class="">
                             <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/driver">
                                   员工信息
                                </li>
                             </#if>
                             <#if session.userRole == 'admin' || session.userRole == 'brandManager'>
                              <li href="/recharge">
                                  帐户记录
                              </li>
                             </#if>
                            <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/notice">
                                    公告管理
                                </li>
                            </#if>
                            <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/driver/loginLog">在线统计</li>
                            </#if>

                        </ul>
                    </div>
                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-zhanghuguanli"></i>客户管理</span>
                    <div class="ej_menu">
                        <ul class="">
                          <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                              <li href="/member">
                                  普通客户
                              </li>
                              <li href="/vipmember?type=0">
                                  vip客户
                              </li>
                          </#if>
                        </ul>
                    </div>
                </li>
                <li class="parentLi">
                    <span class="zk icon"><i class="icon icon-shezhi"></i>系统管理</span>
                    <div class="ej_menu">
                        <ul class="nav nav-list">
                        <!--<#if session.userRole == 'admin'>
				    <li>
					   <a href="/newOrder/cityList" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-glass "></i>城市列表 </a>
				    </li>-->
                                <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager'>
                                    <li href="/sysUser/telList">基本信息</li>
                                        </#if>
                                <li href="/company">
                                    公司充值
                                 </li>
                            </#if>
                          <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                            <li href="/invoice/invoiceList">开票管理</li>
                          </#if>
                         <#if session.userRole == 'admin'>
                                    <li href="/sysUser">
                                    <#--if session.userRole == 'admin' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'-->

                                        操作员管理

                                    </li>
                        </#if>
                                    <!--   <li class="divider"></li>-->
                          <#if session.userRole == 'admin' || session.userRole == 'brandManager'>
                              <li href="/operator">
                                  操作日志
                              </li>
                          </#if>
                            <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/orderReport">订单报表</li>
                            </#if>
                            <#if session.userRole == 'admin' || session.userRole == 'seniorManager' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
                                <li href="/order/orderDealReport">联盟报表</li>
                            </#if>

                        </ul>
                    </div>
                </li>
               <#-- <li>
                    <span class="zk icon"><i class="icon icon-bangzhuzhifufangshi"></i>支付管理</span>
                </li>
                <li>
                    <span class="zk icon"><i class="icon icon-three"></i>渠道管理</span>
                </li>
                <li>
                    <span class="zk icon"><i class="icon icon-tongzhi"></i>通知管理</span>
                </li>
                <li>
                    <span class="zk icon"><i class="icon icon-tongji3"></i>统计报表</span>
                </li>
                <li>
                    <span class="zk icon"><i class="icon icon-lingdang"></i>订单响铃管理</span>
                    <div class="ej_menu">
                        <ul>
                            <li>二级</li>
                        </ul>
                    </div>
                </li>
                <li>
                    <span class="zk icon"><i class="icon icon-guanligudong"></i>项目管理</span>
                    <div class="ej_menu">
                        <ul>
                            <li>二级</li>
                        </ul>
                    </div>
                </li>-->

            </ul>
        </div>

        <div class="span10" id="id_content_div">
            <div class="row-fluid ">
                <#--${httpInclude.include("/order/count")}-->
                <div>
         <#nested>
                </div>

            </div>

            <!-- <hr>
            <footer>
                <p> 全国老兵集团管理系统 2011－2015</p>
            </footer> -->

        </div><!--/.fluid-container-->

</body>
</html>

</#macro>
